package cmo.neutech.day08;

import java.util.Scanner;

public class Rectangle {
    Scanner update = new Scanner(System.in);
    static int width;
    static int length;

    public Rectangle(int width,int length){
        this.width = width;
        this.length = length;
    }

    public static int getArea(){
        int area = width * length ;
        return area;
    }

    public static int getPer(){
        int perimeter = (width + length)*2;
        return perimeter;
    }

    public static void showAll(){
        System.out.println("长:"+length+"宽:"+width+"面积:"+getArea()+"周长:"+getPer());
    }
}
